import styled from "styled-components";

export const Essaycontentwrap = styled.div`
  display: flex;
  & > .editor {
    width: 50%;
    margin-top: 50px;
    margin-left: 200px;
    color: var(--essaycontenttopfontcolor);
    background-color: var(--essaycontenttopback);
    & > img {
      width: 100%;
    }
    & > .topcontent {
      width: 100%;
      margin-top: -20px;
      & > .title {
        margin-left: 15px;
        font-size: 30px;
        font-weight: 800;
        margin-top: 20px;
      }
      & > .main {
        display: flex;
        width: 100%;
        padding: 20px 15px 10px;
        justify-content: space-between;
        & > .left {
          display: flex;
          width: 180px;
          justify-content: space-between;
          height: 50px;
          & > img {
            display: block;
            width: 42px;
            height: 42px;
            cursor: pointer;
            border-radius: 50%;
          }
          & > .right {
            & > .name {
              font-size: 18px;
              font-weight: 600;
            }
            & > .time {
              font-size: 12px;
            }
            & > div {
              height: 25px;
              line-height: 25px;
            }
          }
        }
        & > .right {
          width: 100px;
          font-size: 18px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .shoucangactive {
            color: red;
          }
          & > div {
            width: 40px;
            display: flex;
            justify-content: space-between;
            cursor: pointer;
            & > .iconfont {
              font-size: 23px;
            }
            &:hover {
              background-color: #eeeeee;
            }
          }
        }
      }
    }
    & > .mdeditor {
      padding: 15px;
    }
    & > .label {
      font-size: 20px;
      padding: 10px;
      margin-left: 20px;
      border-radius: 10px;
      background-color: var(--essaylabelback);
    }
  }
  & > .catawrap {
    background-color: var(--essaycontenttopback);
    color: var(--essaycontenttopfontcolor);
    height: 550px;
    position: sticky;
    top: 120px;
    overflow: hidden;
    width: 300px;
    margin-left: 20px;
    & > .catalogtitle {
      margin-left: 30px;
      font-size: 28px;
      font-weight: 800;
      padding-top: 10px;
    }
    & > hr {
      width: 80%;
      margin: 20px auto;
    }
    & > .catalog {
      margin-left: 20px;
      overflow: auto;
      height: 500px;
      list-style: circle !important;
      position: relative;
      &::-webkit-scrollbar {
        height: 20px;
        width: 10px;
        margin-left: 10px;
        position: absolute;
      }
      &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(228, 230, 235, 0.5);
      }
      &::-webkit-scrollbar-track {
        border-radius: 10px;
        background-color: white;
      }

      & > li {
        font-size: 18px;
        font-weight: 500;
        height: 40px;
        line-height: 40px;
        cursor: pointer;
        overflow: hidden;
        white-space: wrap;
        text-overflow: ellipsis;
        &.active {
          color: blue;
        }
        &:hover {
          color: blue;
        }
        &.h2 {
          padding-left: 10px;
        }
        &.h3 {
          padding-left: 20px;
        }
        &.h4 {
          padding-left: 30px;
        }
      }
    }
  }
`;
